# -*- coding: utf-8 -*-
"""
Created on Tue Apr 21 14:47:14 2020

@author: Farman
"""


import joblib
import pathlib
from MyTimer import Timer



classifier = r'D:\Pavia\Pavia\PaviaUniversity\classifier.joblib'
X_pred     = r'D:\Pavia\Pavia\PaviaUniversity\X_pred.joblib'

clf = joblib.load(classifier)
X = joblib.load(X_pred)

t = Timer()
t.start()
# Predict
#-------------------------------------------------------------------------
pd = clf.predict(X)
joblib.dump(pd, pathlib.Path(X_pred).parent / 'y_pred.joblib')
print('Predict finished.')
t.stop()
t.show()
    
